package com.pbking.facebook.delegates.data
{
	import com.pbking.facebook.Facebook;
	import com.pbking.facebook.delegates.FacebookDelegate;

	/**
	 * delegate for calling data.removeHashKey  
 	 * reference: http://wiki.developers.facebook.com/index.php/Data_Store_API_documentation
	 * 
	 * according to facebook developer wiki, removeHashKey has no return value.  
	 * However, in practice, facebook platform will return true for this method.  
	 * 
	 * @author sol wu
	 */
	public class RemoveHashKeyDelegate extends FacebookDelegate
	{
		/**
		 * @param objType 	Object's type. This is required, so that different object types may use the same hash keys for different objects.
		 * @param key 		Hash key (string object identifier) to remove. 
 		 */
		public function RemoveHashKeyDelegate(facebook:Facebook, objType:String, key:String)
		{
			super(facebook);
			if (objType != "") { fbCall.setRequestArgument("obj_type", objType); }
			if (key != "") { fbCall.setRequestArgument("key", key); }
			fbCall.post("facebook.data.removeHashKey");
		}
		
	}
}